package com.my.study.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author Carlos
 * @version 1.0
 * @Description TODO
 * @date 2021/11/17 8:13
 **/
@Controller
public class ViewThymeleafController {

    @GetMapping("/success")
    public String success(Model model) {
        model.addAttribute("msg", "hello world");
        model.addAttribute("link", "www.baidu.com");

        return "success";
    }

}
